function printMessage(point:string) {

}

function printPoint(point:{x:number, y:number}) {
  console.log(point.x);
  console.log(point.y);
}

printPoint({x:123, y:321})
